package com.ziyun.pop.web.modules.mall.controller;

import com.ziyun.pop.modules.mall.service.PurchaseGoodsService;
import com.ziyun.pop.modules.mall.vo.PurchaseGoodsVo;
import io.renren.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 商品采购
 * @author gaosheng
 * @date 2018-12-22 9:59
 */
@RestController
@RequestMapping("mall/purchaseGoods")
public class PurchaseGoodsController {

    @Autowired
    private PurchaseGoodsService purchaseGoodsService;

    @RequestMapping("/queryGoodsList")
    public R queryGoodsList(){
        List<PurchaseGoodsVo> goods = purchaseGoodsService.queryGoodsList();
        return R.ok().put("goods", goods);
    }

}
